* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	background: black;
	transform-style: preserve-3d;
}

.box {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	transform-style: preserve-3d;
	perspective: 500px;
}

.item {
	position: absolute;
	top: calc(50%-150px);
	left: calc(50%-100px);
	width: 200px;
	height: 300px;
	background: white;
	transition: 0.5s;
	box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
	transform-style: preserve-3d;
	transform-origin: bottom;
	user-select: none;
	-webkit-box-reflect: below 1px linear-gradient(transparent, transparent, black);
}

.box .item:nth-child(1) {
	transform: translate3d(-250px, 0, 0) scale(0.8) rotateY(25deg);
	z-index: 1;
}

.box .item:nth-child(2) {
	transform: translate3d(-250px, 0, 0) scale(0.8) rotateY(25deg);
	z-index: 2;
}

.box .item:nth-child(3) {
	transform: translate3d(-150px, 0, 0) scale(0.9) rotateY(15deg);
	z-index: 3;
}

.box .item:nth-child(4) {
	transform: translate3d(0px, 0, 0) scale(1) rotateY(0deg);
	z-index: 4;
}

.box .item:nth-child(5) {
	transform: translate3d(150px, 0, 0) scale(0.9) rotateY(-15deg);
	z-index: 3;
}

.box .item:nth-child(6) {
	transform: translate3d(250px, 0, 0) scale(0.8) rotateY(-25deg);
	z-index: 2;
}

.box .item:nth-child(7) {
	transform: translate3d(250px, 0, 0) scale(0.8) rotateY(-25deg);
	z-index: -1;
}

img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.button {
	position: absolute;
	bottom: 75px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
}

.button span {
	position: relative;
	width: 50px;
	height: 50px;
	border: 2px solid white;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.5;
}

.button span:hover {
	opacity: 1;
}

.button span::before {
	content: '';
	position: absolute;
	left: 20px;
	width: 10px;
	height: 10px;
	border-top: 2px solid white;
	border-left: 2px solid white;
	transform: rotate(-45deg);
}

.button span:last-child::before {
	content: '';
	position: absolute;
	left: initial;
	right: 20px;
	width: 10px;
	height: 10px;
	border-top: 2px solid white;
	border-left: 2px solid white;
	transform: rotate(135deg);
}